﻿<Window x:Class="THEMXOASUA.LOGINWINDOW"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        WindowStartupLocation="CenterScreen" ResizeMode="NoResize" ShowInTaskbar="False"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MÀN HÌNH ĐĂNG NHẬP" Height="280" Width="420">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="72"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="1" Height="100">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
        </Grid>
        <Grid Grid.Row="2" Height="100">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
        </Grid>
        <Image Grid.Row="0" Name="image" Stretch="Fill" VerticalAlignment="Top" Source="D:/window c#/THEMXOASUA/THEMXOASUA/Images/LOGO.JPG"/>
        <Label Content="Tên đăng nhập" Name="lbltendangnhap" Grid.Row="1" Grid.Column="0" Height="25" Width="100" Margin="10,-60,0,0" HorizontalAlignment="Left"/>
        <ComboBox Text="admin"  IsEditable="true" Name="txttendangnhap" Grid.Row="1" Grid.Column="1" Height="25" Width="250" Margin="100,-60,0,0" HorizontalAlignment="Left"/>
        <Label Content="PassWord" Name="lblpassword" Grid.Row="1" Grid.Column="0" Height="25" Width="100" Margin="10,10,0,0" HorizontalAlignment="Left"/>
        <PasswordBox Password="123456" Foreground="Black"  Name="password" Grid.Row="1" Grid.Column="1" Height="25" Width="250" Margin="100,10,0,0" HorizontalAlignment="Left"/>
        <CheckBox Content="Ghi nhớ mật khẩu" Name="chkghinhomatkhau" Grid.Row="1" Grid.Column="1" Height="25" Width="120" Margin="100,80,0,0" HorizontalAlignment="Left"/>
        <Expander Header="Cơ sở dữ liệu" Grid.Row="2" Expanded="Expander_Expanded" Collapsed="Expander_Collapsed" Margin="0,-10,0,0">
            <Grid>
                <Label Content="Máy chủ" Name="lblmaychu" Grid.Row="2" Grid.Column="0" Width="100" Height="25" Margin="10,-80,0,0" HorizontalAlignment="Left"/>
                <ComboBox Name="cbbmaychu" Text="localhost" IsEditable="True" Grid.Row="2" Grid.Column="1" Height="25" Width="250" Margin="100,-80,0,0" HorizontalAlignment="Left"/>
                <Label Content="Tên người dùng " Name="lbltenguoidung" Grid.Row="2" Grid.Column="0" Width="100" Height="25" Margin="10,-10,0,0" HorizontalAlignment="Left"/>
                <ComboBox Name="cbbtennguoidung" Text="sa" IsEditable="True"  Grid.Row="2" Grid.Column="1" Height="25" Width="250" Margin="100,-10,0,0" HorizontalAlignment="Left"/>
                <Label Content="Mật khẩu " Name="lblmatkhau" Grid.Row="2" Grid.Column="0" Width="100" Height="25" Margin="10,60,0,0" HorizontalAlignment="Left"/>
                <PasswordBox Password="sa"  Name="cbbmatkhau" Foreground="Black" Grid.Row="2" Grid.Column="1" Height="25" Width="250" Margin="100,60,0,0" HorizontalAlignment="Left"/>
            </Grid>
        </Expander>
        <Button Content="Đồng ý" Name="dongy" Grid.Row="3" Height="30" Width="70" Margin="0,3,100,3" HorizontalAlignment="Right" Click="dongy_Click" />
        <Button Content="Thoát" Name="thoat" Grid.Row="3" Height="30" Width="70"  HorizontalAlignment="Right" Click="thoat_Click" Margin="0,3,2,3" />
        <Border BorderBrush="Silver" BorderThickness="1" Height="1" Margin="0,-30,0,0"  Grid.Row="3"/>
    </Grid>
</Window>


